package evocarcassonne.tileseteditor.ui.javafx;

import evocarcassonne.tileseteditor.ui.javafx.controllers.MainController;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class MainUI extends Application {
    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage stage) throws Exception {

        FXMLLoader mainloader = new FXMLLoader();
        Parent root = mainloader.load(getClass().getResource("fxml/MainUI.fxml") );
        MainController mainController = mainloader.getController();

        Scene scene = new Scene(root, 800, 600);

        root.setId("Window");
//        scene.getStylesheets().add("/resources/css/dataapp.css");

        stage.setTitle("EvoCarcassonne - TileEditor");
        stage.setScene(scene);
        stage.show();
    }
}